﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace ElectronicCommerce.Framework.ServiceModel.WCF.BindingMessage
{
    [Serializable]
    [XmlRoot("binding")]
    public class StandartBindingMsg
    {
        private string nameField;

        private string closeTimeoutField = "00:01:00";

        private string openTimeoutField = "00:01:00";

        private string receiveTimeoutField = "00:10:00";

        private string sendTimeoutField = "00:01:00";

        /// <remarks/>
        [XmlAttribute("name")]
        public string Name
        {
            get
            {
                return this.nameField;
            }
            set
            {
                this.nameField = value;
            }
        }

        /// <remarks/>
        [XmlAttribute("closeTimeout")]
        public string CloseTimeout
        {
            get
            {
                return this.closeTimeoutField;
            }
            set
            {
                this.closeTimeoutField = value;
            }
        }

        /// <remarks/>
        [XmlAttribute("openTimeout")]
        public string OpenTimeout
        {
            get
            {
                return this.openTimeoutField;
            }
            set
            {
                this.openTimeoutField = value;
            }
        }

        /// <remarks/>
        [XmlAttribute("receiveTimeout")]
        public string ReceiveTimeout
        {
            get
            {
                return this.receiveTimeoutField;
            }
            set
            {
                this.receiveTimeoutField = value;
            }
        }

        /// <remarks/>
        [XmlAttribute("sendTimeout")]
        public string SendTimeout
        {
            get
            {
                return this.sendTimeoutField;
            }
            set
            {
                this.sendTimeoutField = value;
            }
        }
    }
}
